package com.minstone.auth;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableAuthorizationServer;

@SpringBootApplication
public class MinstoneAuthServerApplication {

	/**
	 * localhost:8080/oauth/authorize?client_id=minstone&secret=123456&response_type=code&redirect_uri=http://www.baidu.com
	 *
	 * curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -d 'grant_type=authorization_code&code=zt6JEs&redirect_uri=http://www.baidu.com' "http://minstone:123456@localhost:8080/oauth/token"
	 *
	 * http://localhost:8080/oauth/check_token?token=2cb50f74-04ec-48a8-ad25-1a362bad4335
	 *
	 */

	public static void main(String[] args) {
		SpringApplication.run(MinstoneAuthServerApplication.class, args);
	}

}

